<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>互动交流 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .interaction-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .interaction-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .interaction-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .interaction-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .interaction-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: #f7fafc;
            color: #718096;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .tab-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .content-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .content-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            position: relative;
        }

        .card-type {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
            color: white;
        }

        .type-announcement {
            background: #e53e3e;
        }

        .type-forum {
            background: #38a169;
        }

        .type-vote {
            background: #d69e2e;
        }

        .card-title {
            font-size: 1.2em;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .card-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.9em;
            opacity: 0.9;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .card-content {
            padding: 20px;
        }

        .card-description {
            color: #4a5568;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .card-tag {
            background: #f7fafc;
            color: #4a5568;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .card-stats {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #e2e8f0;
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.2em;
            font-weight: 600;
            color: #667eea;
        }

        .stat-label {
            font-size: 0.8em;
            color: #718096;
            margin-top: 2px;
        }

        .card-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .action-btn {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
        }

        .action-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary:hover {
            background: #5a67d8;
        }

        .quick-actions {
            background: #f7fafc;
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 40px;
        }

        .quick-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .quick-header h2 {
            font-size: 1.8em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .quick-header p {
            color: #718096;
            font-size: 1em;
        }

        .quick-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .quick-item {
            background: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .quick-item:hover {
            transform: translateY(-3px);
        }

        .quick-icon {
            font-size: 2.5em;
            color: #667eea;
            margin-bottom: 15px;
        }

        .quick-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .quick-description {
            color: #718096;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .interaction-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .stat-label {
            color: #718096;
            font-size: 1.1em;
        }

        @media (max-width: 768px) {
            .interaction-tabs {
                gap: 8px;
            }

            .tab-btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .content-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .quick-grid {
                grid-template-columns: 1fr;
            }

            .interaction-stats {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li>
                    <a href="../members/index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li>
                    <a href="../excellent/index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li>
                    <a href="../past/index.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../calendar/index.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li>
                    <a href="../join/index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li>
                    <a href="../partners/index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>互动交流</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="interaction-section">
                <!-- 页面标题 -->
                <div class="interaction-header">
                    <h1>互动交流</h1>
                    <p>与团队成员交流互动，参与讨论和投票</p>
                </div>

                <!-- 互动统计 -->
                <div class="interaction-stats">
                    <div class="stat-card">
                        <div class="stat-number">25</div>
                        <div class="stat-label">公告通知</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">120</div>
                        <div class="stat-label">讨论话题</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">15</div>
                        <div class="stat-label">投票问卷</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">500+</div>
                        <div class="stat-label">参与人次</div>
                    </div>
                </div>

                <!-- 快速操作 -->
                <div class="quick-actions">
                    <div class="quick-header">
                        <h2><i class="fas fa-bolt"></i> 快速操作</h2>
                        <p>快速访问常用功能</p>
                    </div>
                    <div class="quick-grid">
                        <div class="quick-item" onclick="switchTab('announcements')">
                            <div class="quick-icon">📢</div>
                            <div class="quick-title">查看公告</div>
                            <div class="quick-description">浏览最新的团队公告和重要通知</div>
                        </div>
                        <div class="quick-item" onclick="switchTab('forum')">
                            <div class="quick-icon">💬</div>
                            <div class="quick-title">参与讨论</div>
                            <div class="quick-description">加入技术讨论，分享经验和见解</div>
                        </div>
                        <div class="quick-item" onclick="switchTab('vote')">
                            <div class="quick-icon">🗳️</div>
                            <div class="quick-title">参与投票</div>
                            <div class="quick-description">参与团队投票和问卷调查</div>
                        </div>
                        <div class="quick-item" onclick="createNewContent()">
                            <div class="quick-icon">➕</div>
                            <div class="quick-title">发布内容</div>
                            <div class="quick-description">发布新的话题、公告或投票</div>
                        </div>
                    </div>
                </div>

                <!-- 内容标签页 -->
                <div class="interaction-tabs">
                    <button class="tab-btn active" onclick="switchTab('announcements')" data-tab="announcements">
                        <i class="fas fa-bullhorn"></i> 公告通知
                    </button>
                    <button class="tab-btn" onclick="switchTab('forum')" data-tab="forum">
                        <i class="fas fa-comments"></i> 讨论区
                    </button>
                    <button class="tab-btn" onclick="switchTab('vote')" data-tab="vote">
                        <i class="fas fa-poll"></i> 投票问卷
                    </button>
                </div>

                <!-- 公告通知内容 -->
                <div class="tab-content active" id="announcements-content">
                    <div class="content-grid">
                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-announcement">重要</div>
                                <div class="card-title">2024年春季招新开始啦！</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>管理员</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-15</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">流光小队2024年春季招新正式开始，欢迎对科技创新感兴趣的同学报名参加。</div>
                                <div class="card-tags">
                                    <span class="card-tag">招新</span>
                                    <span class="card-tag">春季</span>
                                    <span class="card-tag">报名</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">1500</div>
                                        <div class="stat-label">查看</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">120</div>
                                        <div class="stat-label">点赞</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">45</div>
                                        <div class="stat-label">评论</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewAnnouncement(1)">查看详情</button>
                                    <button class="action-btn primary" onclick="likeAnnouncement(1)">点赞</button>
                                </div>
                            </div>
                        </div>

                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-announcement">紧急</div>
                                <div class="card-title">本周六技术分享会通知</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>技术负责人</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-14</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">本周六下午2点将在实验室举办技术分享会，主题为"人工智能在Web开发中的应用"。</div>
                                <div class="card-tags">
                                    <span class="card-tag">技术分享</span>
                                    <span class="card-tag">AI</span>
                                    <span class="card-tag">Web开发</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">800</div>
                                        <div class="stat-label">查看</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">65</div>
                                        <div class="stat-label">点赞</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">23</div>
                                        <div class="stat-label">评论</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewAnnouncement(2)">查看详情</button>
                                    <button class="action-btn primary" onclick="likeAnnouncement(2)">点赞</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 讨论区内容 -->
                <div class="tab-content" id="forum-content">
                    <div class="content-grid">
                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-forum">热门</div>
                                <div class="card-title">React Hooks 最佳实践分享</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>张小明</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-15</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">最近在使用React Hooks开发项目，总结了一些最佳实践，包括状态管理、副作用处理、性能优化等方面。</div>
                                <div class="card-tags">
                                    <span class="card-tag">React</span>
                                    <span class="card-tag">Hooks</span>
                                    <span class="card-tag">前端</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">1200</div>
                                        <div class="stat-label">查看</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">45</div>
                                        <div class="stat-label">回复</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">25</div>
                                        <div class="stat-label">点赞</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewTopic(1)">查看话题</button>
                                    <button class="action-btn primary" onclick="replyTopic(1)">回复</button>
                                </div>
                            </div>
                        </div>

                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-forum">新帖</div>
                                <div class="card-title">机器学习入门经验分享</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>李小红</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-14</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">从零开始学习机器学习已经三个月了，想分享一下学习路径、遇到的困难和解决方案。</div>
                                <div class="card-tags">
                                    <span class="card-tag">机器学习</span>
                                    <span class="card-tag">入门</span>
                                    <span class="card-tag">经验</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">800</div>
                                        <div class="stat-label">查看</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">18</div>
                                        <div class="stat-label">回复</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">32</div>
                                        <div class="stat-label">点赞</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewTopic(2)">查看话题</button>
                                    <button class="action-btn primary" onclick="replyTopic(2)">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 投票问卷内容 -->
                <div class="tab-content" id="vote-content">
                    <div class="content-grid">
                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-vote">进行中</div>
                                <div class="card-title">2024年团队技术发展方向调研</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>技术负责人</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-15</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">为了更好地规划2024年的技术发展方向，请大家投票选择最感兴趣的技术领域。</div>
                                <div class="card-tags">
                                    <span class="card-tag">技术调研</span>
                                    <span class="card-tag">发展方向</span>
                                    <span class="card-tag">投票</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">45</div>
                                        <div class="stat-label">参与</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">4</div>
                                        <div class="stat-label">选项</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">5天</div>
                                        <div class="stat-label">剩余</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewVote(1)">查看详情</button>
                                    <button class="action-btn primary" onclick="participateVote(1)">参与投票</button>
                                </div>
                            </div>
                        </div>

                        <div class="content-card">
                            <div class="card-header">
                                <div class="card-type type-vote">进行中</div>
                                <div class="card-title">团队活动时间偏好调查</div>
                                <div class="card-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-user"></i>
                                        <span>活动负责人</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-calendar"></i>
                                        <span>2024-01-14</span>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-description">为了合理安排团队活动时间，请选择您最方便的时间段。</div>
                                <div class="card-tags">
                                    <span class="card-tag">时间调查</span>
                                    <span class="card-tag">活动安排</span>
                                    <span class="card-tag">偏好</span>
                                </div>
                                <div class="card-stats">
                                    <div class="stat-item">
                                        <div class="stat-value">32</div>
                                        <div class="stat-label">参与</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">4</div>
                                        <div class="stat-label">选项</div>
                                    </div>
                                    <div class="stat-item">
                                        <div class="stat-value">3天</div>
                                        <div class="stat-label">剩余</div>
                                    </div>
                                </div>
                                <div class="card-actions">
                                    <button class="action-btn" onclick="viewVote(2)">查看详情</button>
                                    <button class="action-btn primary" onclick="participateVote(2)">参与投票</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        function switchTab(tab) {
            // 隐藏所有内容
            document.querySelectorAll('.tab-content').forEach(content => {
                content.classList.remove('active');
            });
            
            // 移除所有标签按钮的激活状态
            document.querySelectorAll('.tab-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            
            // 显示选中的内容
            document.getElementById(`${tab}-content`).classList.add('active');
            
            // 激活对应的标签按钮
            document.querySelector(`[data-tab="${tab}"]`).classList.add('active');
        }

        function createNewContent() {
            alert('创建新内容功能正在开发中...\n\n📝 功能包括：\n• 发布公告通知\n• 创建讨论话题\n• 发起投票问卷\n• 内容编辑和管理\n\n敬请期待！');
        }

        function viewAnnouncement(id) {
            alert(`查看公告详情：\n\n📢 公告ID：${id}\n\n功能正在开发中，敬请期待！`);
        }

        function likeAnnouncement(id) {
            alert(`点赞公告：\n\n👍 公告ID：${id}\n\n点赞成功！`);
        }

        function viewTopic(id) {
            alert(`查看话题详情：\n\n💬 话题ID：${id}\n\n功能正在开发中，敬请期待！`);
        }

        function replyTopic(id) {
            alert(`回复话题：\n\n💬 话题ID：${id}\n\n回复功能正在开发中，敬请期待！`);
        }

        function viewVote(id) {
            alert(`查看投票详情：\n\n🗳️ 投票ID：${id}\n\n功能正在开发中，敬请期待！`);
        }

        function participateVote(id) {
            alert(`参与投票：\n\n🗳️ 投票ID：${id}\n\n投票功能正在开发中，敬请期待！`);
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(11)').classList.add('active');
        });
    </script>
</body>
</html> 